package com.ciaojian.core.factory;

import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * ObjectMapper 工厂类
 *
 * @author Atlakyn
 */
public class ObjectMapperFactory {
    private static ObjectMapper objectMapper;

    public static ObjectMapper getObjectMapperInstance() {
        if (ObjectMapperFactory.objectMapper == null) {
            return ObjectMapperFactory.objectMapper = new ObjectMapper();
        }
        return ObjectMapperFactory.objectMapper;
    }
}
